package kr.saeildamil.androidstudy_second.fragment;

import kr.saeildamil.androidstudy_second.R;
import android.app.Activity;
import android.os.Bundle;

public class FragmentMgn extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_fragmentmgn);
		
		//방법6 그러나 5번 방법이 가장 좋음
		/*Button btnIncrease  = (Button) findViewById(R.id.counterfragment_btn);
		TextView textcounter = (TextView) findViewById(R.id.counterfragment_txtcounter);
	
		btnIncrease.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				int count = Integer.parseInt(textcounter.getText().toString());
			    textcounter.setText(Integer.toString(count+1));
			}
		});*/
	}
}
